/*
 * This class represents only printing out the available files
 */

package org.amse.ys.sndeditor.ui;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

class FileView extends LinearLayout {
	private TextView myName;
	private TextView myComment;

	public FileView(Context context, String title, String words) {
		super(context);
		this.setOrientation(VERTICAL);
		myName = new TextView(context);
		myName.setText(title);
		myName.setTextSize(2 * myName.getTextSize());
		addView(myName, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,
				LayoutParams.WRAP_CONTENT));

		myComment = new TextView(context);
		myComment.setText(words);
		addView(myComment, new LinearLayout.LayoutParams(
				LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));

	}

	public void setName(String title) {
		myName.setText(title);
	}

	public void setComment(String words) {
		myComment.setText(words);
	}

}